<?php
	include "sql.php";
	$uid = $lat = $lng = "";
	if ($_SERVER["REQUEST_METHOD"] == "POST"){
	  $uid = $_POST["uid"];
	  $lat = $_POST["lat"];
	  $lng = $_POST["lng"];
	  header("Content-type: text/json");
	  echo updateLoc($uid,$lat,$lng);
	  return;
	}
?>

<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<form action="updateLoc.php" method="post">
	uid:<input type="text" name="uid">
	lat:<input type="text" name="lat">
	lng:<input type="text" name="lng">
	<input type="submit" name="name">
</form>
</body>
</html>
